/**
 * 
 */
package com.res.common.controller;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;

import com.res.simulator.handler.HelpPageHandler;
import com.res.simulator.model.SubmitOrderModel;
import com.res.simulator.view.HelpPageView;

/**
 * @author Dhanushka Ariyasingha.
 *
 */
@Controller
@SessionAttributes
public class HelpPageController extends BaseController {
	
	@RequestMapping("/helppage")
	public String home(@ModelAttribute("SubmitOrderModel") SubmitOrderModel submitOrderModel) {

		final Map<String, String> storeFrontMap = new LinkedHashMap<String, String>();

		HelpPageHandler handler= new HelpPageHandler(); 
		
		final List<HelpPageView>  viewCollection= handler.getPageViewList();

		getSession().setAttribute("ViewCollection", viewCollection);
		
		return "helppagelayout";
	}
	
}
